package com.huatai.saas.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 用户模型授权表
 * </p>
 *
 * @author songxiude
 * @since 2024-04-28
 */
@Data
@TableName("user_model_auth")
@ApiModel(value = "UserModelAuth对象", description = "用户模型授权表")
public class UserModelAuth implements Serializable {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty("主键")
	@TableId(value = "id",type = IdType.ASSIGN_ID)
	private Long id;

	@ApiModelProperty(value = "用户id",required = true)
	@TableField("user_id")
	private Long userId;

	@ApiModelProperty(value = "授权用户ID")
	@TableField("auth_user_id")
	private Long authUserId;

	@ApiModelProperty(value = "模型id")
	@TableField("model_id")
	private Long modelId;

	@ApiModelProperty(value = "模型名称")
	@TableField("model_name")
	private String modelName;

	@ApiModelProperty(value = "行业key")
	@TableField("industry_key")
	private String industryKey;

	@ApiModelProperty("信息备注")
	@TableField("remark")
	private String remark;

	@ApiModelProperty("授权状态0正常1禁用")
	@TableField("status")
	private Integer status;

	@ApiModelProperty(value = "授权开始时间",required = true)
	@TableField("auth_start_time")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	private LocalDateTime authStartTime;

	@ApiModelProperty(value = "授权结束时间",required = true)
	@TableField("auth_end_time")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	private LocalDateTime authEndTime;

	@TableField(value = "create_time",fill = FieldFill.INSERT)
	@ApiModelProperty("创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	private LocalDateTime createTime;


}




